ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.Direct3D11 Namespace / CommonShaderStageBase Class / SetShaderResources Method / SetShaderResources(Int32,Int32,ComArray<ShaderResourceView>) Method
Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).
Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot).
Array of {{shader resource view}} interfaces to set to the device.

In This Topic
    SetShaderResources(Int32,Int32,ComArray<ShaderResourceView>) Method
    In This Topic
    Bind an array of shader resources to the shader stage.
    Syntax
    'Declaration
     
    Public Overloads Sub SetShaderResources( _
       ByVal startSlot As Integer, _
       ByVal numViews As Integer, _
       ByVal shaderResourceViewsRef As ComArray(Of ShaderResourceView) _
    ) 
    public void SetShaderResources( 
       int startSlot,
       int numViews,
       ComArray<ShaderResourceView> shaderResourceViewsRef
    )

    Parameters

    startSlot
    Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).
    numViews
    Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot).
    shaderResourceViewsRef
    Array of {{shader resource view}} interfaces to set to the device.
    See Also